#ifndef UNIONSYSTEMDLL_GLOBAL_H
#define UNIONSYSTEMDLL_GLOBAL_H

#include <QtCore/qglobal.h>

#if defined(UNIONSYSTEMDLL_LIBRARY)
#  define UNIONSYSTEMDLLSHARED_EXPORT Q_DECL_EXPORT
#else
#  define UNIONSYSTEMDLLSHARED_EXPORT Q_DECL_IMPORT
#endif

#define UNDERTAKE 0
#define NOERROR 1

enum class ENUM_ThreadStatus {ThreadInit, ThreadRunning, ThreadStop};
enum class ENUM_PluginStatus {Ready, Init, InitDone, Running, Pause, Stop, Delete};
enum class MessageType {Message,Warring,Error};

typedef struct ThreadLoopTime{
    double LoopTime;
    double TimeNow;
    double TimeLast;
}ThreadLoopTime;

typedef struct KUKAThreadLoopTime{
    double LoopTime;
    double TimeNow;
    double TimeLast;
}KUKAThreadLoopTime;

typedef struct MessageNumber{
   int NormalMessageNumber;
   int WarningMessageNumber;
   int ErrorMessageNumber;
}MessageNumber;


UNIONSYSTEMDLLSHARED_EXPORT short UnionTecSystemInstanceInit();
UNIONSYSTEMDLLSHARED_EXPORT void  UnionTecSystemProgressBar(int value);
UNIONSYSTEMDLLSHARED_EXPORT void  UnionTecSystemMessageBox(MessageType Type,const QString Data);

UNIONSYSTEMDLLSHARED_EXPORT void  UnionTecSystemDebugWindowShow();
UNIONSYSTEMDLLSHARED_EXPORT void  UnionTecSystemDebugAdminWindowShow();
UNIONSYSTEMDLLSHARED_EXPORT void  UnionTecSystemDebugWindowHide();
UNIONSYSTEMDLLSHARED_EXPORT void  UnionTecSystemQuite();

/***************ErrorList***************/

/***************ErrorList***************/

#endif // UNIONSYSTEMDLL_GLOBAL_H
